package com.lzqinga.model;

import lombok.Data;

/**
 * - @author lzqinga
 * - @description
 * - @date 2025/10/11/011 12:00
 **/
@Data
public class VideoComposeResult {

    private Boolean success;
    private String videoPath;
    private String videoUrl;
    private Double duration;
    private Integer segmentCount;
    private String message;
    private Long fileSize;

    public static VideoComposeResult success(String videoPath, String videoUrl, Double duration, Integer segmentCount) {
        VideoComposeResult result = new VideoComposeResult();
        result.setSuccess(true);
        result.setVideoPath(videoPath);
        result.setVideoUrl(videoUrl);
        result.setDuration(duration);
        result.setSegmentCount(segmentCount);
        result.setMessage("视频合成成功");
        return result;
    }

    public static VideoComposeResult error(String message) {
        VideoComposeResult result = new VideoComposeResult();
        result.setSuccess(false);
        result.setMessage(message);
        return result;
    }
}
